package com.gxa.meiye.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.meiye.admin.mapper.DoorMapper;
import com.gxa.meiye.admin.service.DoorService;
import com.gxa.meiye.core.pojo.domain.Settle;
import com.gxa.meiye.core.pojo.domain.Therapist;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zy
 * @CreateTime: 2022-07-24  16:25
 */
@Service
public class DoorServiceImpl extends ServiceImpl<DoorMapper,Therapist> implements DoorService {
    @Autowired
    private DoorMapper doorMapper;
    @Override
    public List<Therapist> select() {
        List<Therapist> select = doorMapper.select();
        return select;
    }

    @Override
    public Therapist selectBeautyProject(String name) {
        Therapist therapist = doorMapper.selectBeautyProject(name);
        return therapist;
    }

    @Override
    public Therapist selectBeauty(String name) {
        Therapist therapist = doorMapper.selectAllByNameEquals(name);
        return therapist;
    }

    @Override
    public Settle selectCon() {
        Settle settle = doorMapper.selectCon();
        return settle;
    }

    @Override
    public void Str(Integer[] ids) {
        for (int i=0;i<ids.length;i++){
            System.out.println(ids[i]);
            doorMapper.update(ids[i]);
        }
    }
}
